cmd1 = " -P RAND -x ../test/testexec | grep '7220' | wc"
cmd2 = " -x ../test/testexec | grep '7220' | wc"
cmd = "nachos -rs "
1.upto(100) do |i|
  command = cmd+i.to_s+cmd1
  system(command)
  command = cmd+i.to_s+cmd2
  system(command)
end